package com.server;

import com.domain.Document;
import java.util.List;
import java.util.Date;

public interface DocumentService {

    //显示所有附件信息
    public List<Document> showDocument(int space_id);


    //分页显示
    public List<Document> findAllFileByPage(int space_id,int from,int pageSize);

    //根据资源id显示附件信息
    public List<Document> showDocumentByResourceId(Integer id);

    //新建文件信息
    public Integer insertDocument(String filename,double filesize,Date createdate,
                                   Integer downloadcount,Integer member_id,Integer resource_id,Integer contribute_id,Integer space_id);

    //根据id删除附件
    public Integer deleteFile(Integer id);

    //修改下载次数
    public Integer updateNum(Integer id,Integer downloadcount);
    public List<Document> showDocumentById(Integer id);


}
